#version 430 core

layout(local_size_x=256) in;

layout(binding=0) coherent buffer dataBuffer
{
	float data[];
};

uniform float value;
uniform uint n;

void main(void)
{
	uint gid = gl_GlobalInvocationID.x;
	if (gid < n)
	{
		data[gid]= value;
	}
}